<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>使用vw来布局</title>
</head>
<body>
    <div class="main">
        <div class="item">
            <img src="https://image3.suning.cn/uimg/cms/img/165710989476671143.png?from=mobile">
        </div>
        <div class="item">
            <img src="https://image3.suning.cn/uimg/cms/img/165710989476671143.png?from=mobile">
        </div>
        <div class="item">
            <img src="https://image3.suning.cn/uimg/cms/img/165710989476671143.png?from=mobile">
        </div>
        <div class="item">
            <img src="https://image3.suning.cn/uimg/cms/img/165710989476671143.png?from=mobile">
        </div>
        <div class="item">
            <img src="https://image3.suning.cn/uimg/cms/img/165710989476671143.png?from=mobile">
        </div>
    </div>
</body>
<style>
    body{
        margin: 0;
    }
    .main{
        width: 100vw;
        height: 40vw;
        background-color: aqua;
    }
    .main .item{
        width: 20vw;
        height: 20vw;
        float: left;
        background-color: beige;
    }

    .main .item img{
        width: 20vw;
        height: 20vw;
    }
</style>
</html>